Component({
  properties: {
    show: {
      type: Boolean,
    },
  },
  data: {
    pay_method: 0,
  },

  methods: {
    _clickOverlay() {
      this.setData({
        show: false,
      })
    },
    // 选择支付方式
    _success({ detail }) {
      this.setData({
        pay_method: detail,
        show: false,
      })
      this.triggerEvent('success', this.data.pay_method)
    },
  },
})
